﻿using HPIT.RentHouse.Common;
using HPIT.RentHouse.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HPIT.RentHouse.IService
{
    public interface IRolesService:IServiceSupport
    {

        List<RoleDTO> GetList();

        List<RoleDTO> GetPageList(int start, int length, string name, ref int rowCount);

        AjaxResult AddRole(RoleEditDTO dTO);

        /// <summary>
        /// 根据id获取角色信息
        /// </summary>
        /// <param name="id">角色id</param>
        /// <returns></returns>
        RoleEditDTO Get(long id);

        AjaxResult UpdateRole(RoleEditDTO dTO);
    }
}
